﻿using mscook.core.domain;
using mscook.core.services;
using mscook.mvc.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace mscook.mvc.Controllers
{
    public class FootController : Controller
    {
        private IAboutUsService iAboutUsService;
        private IHotelService iHotelService;
        //
        // GET: /Foot/
        public FootController(IAboutUsService iAboutUsService, IHotelService iHotelService)
        {
            this.iAboutUsService = iAboutUsService;
            this.iHotelService = iHotelService;
        }
        /// <summary>
        /// 首页显示最大数量为15
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            FootModel FootModel = new FootModel();
            FootModel.AboutUsList = iAboutUsService.SelectShowOnHomePage(15);
            FootModel.BottomHotelList = iHotelService.SelectBottomHotelList(15);
            return PartialView(FootModel);
        }

    }
}
